package service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.NoticeMapper;
import pojo.Notice;

@Service
public class NoticeServiceImpl implements NoticeService {
	@Autowired
	private NoticeMapper noticeMapper;

	@Override
	public Integer add(Notice notice) {
		return noticeMapper.add(notice);
	}

	@Override
	public List<Map<String,Object>> findNoticelist() {
		return noticeMapper.findNoticelist();
	}

	@Override
	public Integer delById(Integer n_id) {
		return noticeMapper.delById(n_id);
	}

	@Override
	public Integer update(Notice notice) {
		return noticeMapper.update(notice);
	}

	@Override
	public Notice findById(Integer n_id) {
		return noticeMapper.findById(n_id);
	}

}
